package com.ktg.mes.unit.demo.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.ktg.mes.unit.demo.mapper.JeMesaoiMapper;
import com.ktg.mes.unit.demo.entity.JeMesaoi;
import com.ktg.mes.unit.demo.service.IJeMesaoiService;
import com.ktg.mes.unit.sync1.Sync1ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * @Description: AOI上报数据
 * @Author: MxpIO
 * @Date:   2022-06-09
 * @Version: V1.0
 */
@Service
@DS("master")
public class JeMesaoi1ServiceImpl extends Sync1ServiceImpl<JeMesaoiMapper, JeMesaoi> implements IJeMesaoiService {


    @Autowired
    SyscnT61ServiceImpl jeMesaoi2Service;


//    public APIResult apiCode(Map json,String code){
//        QueryWrapper queryWrapper = new QueryWrapper<>();
//        //aipCode;
//        Map<String,Object> allMap = new HashMap<>();

//        /**
//         *  //替换 key 名称，方便 转 model
//         *  json.put(newKey) = json.get(oldKey);
//         *
//         *  // 所有参数，值都保存到 allMap
//         *  --allMap.add(json);
//         *  // 处理 每一条 sql
//         *  -- map1 = sql_json[i];
//         *  -- keys = map1.key
//         *  -- for( key :keys){ if(key.concat(".")){key = allMap.get().get()} , sqlJson[i].replace(key,'') , allMap.put(map1.name, selectMap(map1.sql)),allMap.put(map1.name,insert())}
//         *
//         *  -- Class.fromName();
//         *
//         * /
//        // map.put(key,sqlJson[i]);
//        // map.put();



//    }

//    @Override
//    public SyscnT6ServiceImpl outerService() {
//        return jeMesaoi2Service;
//    }
}
